package router

import (
	"github.com/gin-gonic/gin"
	"go-learn/api"
)

func MysqlRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
	BaseRouter := Router.Group("mysql_test")
	{
		BaseRouter.POST("InsertAll", api.InsertAll)
		BaseRouter.POST("Insert", api.Insert)
		BaseRouter.POST("DeleteUserById", api.DeleteUserById)
		BaseRouter.POST("UpdateAgeById", api.UpdateAgeById)
		BaseRouter.POST("SelectUserById", api.SelectUserById)
		BaseRouter.POST("SelectUserPage", api.SelectUserPage)
	}
	return BaseRouter
}
